import request from '@/utils/request'

export function getWaringList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/warning/getList',
    method: 'post',
    data: query
  })
}


export function getMajorList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/major/getList',
    method: 'post',
    data: query
  })
}   

export function saveMajor(query) {
  return request({
    url: '/knowledge/admin/major/save',
    method: 'post',
    data: query
  })
}

export function removeMajor(query) {
  return request({
    url: '/knowledge/admin/major/remove',
    method: 'post',
    data: query
  })
}
export function getMajorDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/major/getDetail',
    method: 'post',
    data: query
  })
}